type square = struct {
    int length
    int width
    var area = fn(self s):int {
        return s.length * s.width
    }
}

var foo = square {
    length = 10,
    width = 5
}

var area = foo.area()
print('area=', area, '\n')